package com.zxr.demo.commom.bo;

import jakarta.validation.constraints.NotBlank;

import java.io.Serializable;

public class LoginBO implements Serializable {

    //名称
    @NotBlank(message = "此账号不能为空")
    private String name;
    //密码
    @NotBlank(message = "密码不能为空")
    private String pwd;

    public LoginBO() {
    }

    public LoginBO(String name, String pwd) {
        this.name = name;
        this.pwd = pwd;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }
}
